# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-bluemsx
pkgver=0_git20240808
pkgrel=0
_commit="824690b5ac997ec9694e8db1595186459bb3b652"
pkgdesc="port of blueMSX to the libretro API"
url="https://github.com/libretro/blueMSX-libretro"
arch="all"
makedepends="zlib-dev"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/blueMSX-libretro/archive/$_commit.tar.gz
	patch-unbundle.patch
	"
builddir="$srcdir/blueMSX-libretro-$_commit"
options="!check" # No tests

build() {
	rm -rf deps
	make -f Makefile.libretro
}

package() {
	install -Dm644 bluemsx_libretro.so "$pkgdir"/usr/lib/libretro/bluemsx_libretro.so
}

sha512sums="
eba4980b90396344114a2a3496b240835a016900cf1875e89ee4ba86c35e0ee135a53e87648a71b02d7c5747908c1f98a96f8022e2f63b713cd185fb27c59427  libretro-bluemsx-824690b5ac997ec9694e8db1595186459bb3b652.tar.gz
27bd632aace1acbc7c0dd30d0d2576c08dcc52b88a81296e0c1c7e845d92f6ffb901f133a9154a8b05ad36667d1353bd3894b52f226e5a20e48c637b27a3ec11  patch-unbundle.patch
"
